require.config({
	shim: {
		jquery: {
			exports: '$'
		},
		underscore: {
			exports: '_'
		},
		backbone: {
			deps: [
				'underscore',
				'jquery'
			],
			exports: 'Backbone'
		},
		backboneLocalstorage: {
			deps: ['backbone'],
			exports: 'Store'
		},
		swiper: {
			deps: [
				'jquery'
			],
			exports: 'swiper'
		},
		mobiscroll: {
			deps: [
				'jquery'
			],
			exports: 'mobiscroll'
		},
		autocomplete: {
			deps: [
				'jquery'
			],
			exports: 'autocomplete'
		}
	},
	paths: {
		jquery: 'lib/jquery.min',
		underscore: 'lib/lodash.min',
		backbone: 'lib/backbone/backbone',
		backboneLocalstorage: 'lib/backbone/backbone.localStorage',
		swiper: 'lib/swiper/dev/idangerous.swiper',
		mobiscroll: 'lib/mobiscroll/mobiscroll.custom-2.4.4.min',
		autocomplete: 'lib/autocomplete/autocomplete.min',
		text: 'lib/require/text'
	}
});

require([
	'router',
	'globals'
], function( Router, Globals ) {

	new Router();

	Backbone.history.start();

	/*history.pushState({ Home: "Home" }, "Home", "index.html");*/
});
